package com.spa.application.dto.shop;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Builder;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

@Data
@Builder
@JsonInclude
public class IndexDTO {

    private String name;

    private StatisticsDataDTO currentMonth;

    @Getter
    @Setter
    @Builder
    @JsonInclude
    public static class StatisticsDataDTO {

        private Integer buyUsers = 0;

        private List<Pair> buyUsersList = new ArrayList<>();

        private double buyUsersComparison = 0;

        private Integer totalPrice = 0;

        private List<Pair> totalPriceList = new ArrayList<>();

        private double totalPriceComparison = 0;
    }

    @Getter
    @Setter
    @Builder
    @JsonInclude
    public static class Pair {

        private String key;

        private String value;

    }
}
